package com.sand.entity.user;

import com.baomidou.mybatisplus.annotation.*;


import lombok.Data;


@Data
@TableName("user")
public class User {

    //使用雪花算法
    @TableId(value = "id" , type = IdType.ASSIGN_ID)
    private Integer id;

    @TableField(value = "name" , insertStrategy = FieldStrategy.NOT_NULL)
    private String name;

    @TableField(value = "age" , insertStrategy = FieldStrategy.NOT_NULL)
    private Integer age;

    @TableField(value = "type" , insertStrategy = FieldStrategy.NOT_NULL)
    private Integer type;

    @TableField(value = "gender" , insertStrategy = FieldStrategy.NOT_NULL)
    private Integer gender;

    @TableField(value = "phone" , insertStrategy = FieldStrategy.NOT_NULL)
    private String phone;

    @TableField(value = "password" , insertStrategy = FieldStrategy.NOT_NULL)
    private String password;

    @TableField(value = "addr")
    private String addr;

    @TableField(value = "text")
    private String text;

    @TableField(value = "status" , insertStrategy = FieldStrategy.NOT_NULL)
    private Integer status;

}
